<@css href="/easyui/themes/default/easyui.css"/>
<@css href="/easyui/themes/icon.css"/>
<@js src="/easyui/jquery.easyui.min.js"/><@jsRender/>
<div class="detaiTab detaiTab1 m10">
	<form action="<@url value='/workflowsubmit/saveDate'/>"
		class="action-ajax-form" method="post">
		<p class="p10">实际付款信息</p>
		<table width="100%" class="b_t" border="0" cellspacing="0" cellpadding="0">
			<tbody>
				<tr>
					<td align="right" class="bg" width="16%">本次保证金打款金额：</td>
					<td>
					<#if (loanapplyExpand.receiveDeposit)??> <input
						class="tabInp bn" type="text" name="receiveDeposit"
						id="reDakuanDeposite"
						value="${loanapplyExpand.receiveDeposit}" readonly="readonly"/>
						<#else> 
						<input type="text" name="receiveDeposit"
						id="reDakuanDeposite" class="tabInp bn"
						value="${loanapplyExpand.recDeposite}" readonly="readonly"/>
						</#if>
					</td>
					<td align="right" class="bg" width="16%">本次保证金到款金额：</td>
					<td><input id="redDaokaunDeposite" type="text"
						name="redDeposite" class="tabInp bn" size="40"  readonly="readonly" /></td>
					<td align="right" class="bg" width="14%" title="本次缴纳保证金=本次保证金打款金额+本次保证金划拨金额"><span class="wenhaoIco"></span>本次缴纳保证金：</td>
					<td>
						${loanapplyExpand.recDeposite}
					</td>
				</tr>
				<tr>
					<td align="right" class="bg" width="16%">本次管理费打款金额：</td>
					<td>
					<#if (loanapplyExpand.paidManger)??>
					<input type="text" id="reDakuanManger"
						name="recManger" class="tabInp bn" size="40"
						value="${loanapplyExpand.paidManger}" readonly="readonly"/>
					<#else> 
					<input type="text" id="reDakuanManger"
						name="recManger" class="tabInp bn" size="40"
						value="${loanapplyExpand.recManger}"  readonly="readonly"/>
					</#if>
						</td>
					<td align="right" class="bg">本次管理费到款金额：</td>
					<td><input type="text" id="reDaokuanManger"
						name="redManger" class="tabInp bn" size="40"  readonly="readonly" /></td>
					<td align="right" class="bg">本次保证金划拨金额：</td>
					<td>
						${loanapplyExpand.transferDeposit}
					</td>
				</tr>
				<tr>
					<td align="right" class="bg" width="15%">本次风险补偿金打款金额：</td>
					<td>
					<#if (loanapplyExpand.paidRisk)??>
				<input type="text" id="reDakuanRisk" name="recRisk"
						class="tabInp bn" size="40" value="${loanapplyExpand.paidRisk}" readonly="readonly"/>
					<#else> 
					<input type="text" id="reDakuanRisk"
						name="recRisk" class="tabInp bn" size="40"
						value="${loanapplyExpand.recRisk}" readonly="readonly"/>
					</#if>
						</td>
					<td align="right" class="bg">本次风险补偿金到款金额：</td>
					<td><input type="text" id="reDaokuanRisk" name="redRisk"
						class="tabInp bn" size="40"  readonly="readonly" /></td>
						<input type="hidden" name="risk" id="riskHuabo" />
					<td align="right" class="bg">保证金划拨贷款单号：</td>
					<td>
					<#list transferList as transferNum>
					<p><a href="/oldsytem?billCode=${transferNum}" target="_blank">
						${transferNum}&nbsp;
					</a>
					</p>
					</#list>
					</td>
				</tr>
				<tr>
					<td align="right" class="bg"><span
						style="color: red;">*</span>本次打款合计金额：</td>
					<td><input type="text" class="bn" id="reDakuanTotal"
						readonly="true"></td>
					<td align="right" class="bg"><span
						style="color: red;">*</span>本次到款合计金额：</td>
					<td><input type="text" id="reDaokuanTotal"
						class="tabInp inputNum" name="redTotal" size="40"
						 /></td>
						<td align="right" class="bg"><span
						style="color: red;">*</span>本次到账日期：</td>
					<td>
					<#if loanapplyExpand.payDate??>
	      			
	      			<#assign payDates=loanapplyExpand.payDate?string('yyyy-MM-dd') />
	      			
	      			</#if>
					<@date value="${payDates}" id="payDate" name = "payDate"/></td>
				</tr>
				<input type="hidden" value="${loanapplyExpand.id}" name="id" />
				<input type="hidden" value="${loan.loanapplyNo}" name="loanapplyNo" />
				<tr >
	      				<td align="right" class="bg" width="15%"><span style="color: red;">*</span>实际收款账户：</td>
	      				<td colspan="5">
						<select name="skBankAccount" id="skBankAccountBZJ">
	    				 <option value="">--请选择--</option>
	    				<#if bankAccountList?exists>  
			                <#list bankAccountList as key>   
			                   <option <#if key==loanapplyExpand.skBankAccount>selected="selected"</#if> value="${key}">${key}</option>
			                </#list>  
			            </#if> 
	    				</select>
						</td>
	      		</tr>
				<tr>
				<td class="bg" align="right">操作:</td>
				<td colspan="5"><input type="submit" value="保存"
					class="btn_auto_30 btn_blue" /><span class="red fs14  ml10">(提示：请先点击【保存】按钮，再审核该单据！)</span></td>
				</tr>
				<tr>
					<td class="bg" align="right"></td>
					<td colspan="5"><a
						href="<@url value='/payment/upload?referId=${loan.loanapplyNo}'/>"
						target="_blank">补充附件</a></td>
				</tr>
			</tbody>
		</table>
	</form>
</div>
 <div class="detaiTab detaiTab1 m10">
        <p class="p10">打款凭证和代付确认附件列表</p>
       <div class="dataBable"><@pagination paginationInfo="pageResult"/></div>
  </div>
<@js>
 $(document).ready(function(){
    var recDeposite=$("#reDakuanDeposite").val()*1;
	var recManger=$("#reDakuanManger").val()*1;
 	var recRisk=$("#reDakuanRisk").val()*1;
 	var rectotal=recDeposite+recManger+recRisk;
 	$("#riskHuabo").val(recRisk);
	$("#reDakuanTotal").val(rectotal.toFixed(2));
	$("#skBankAccountBZJ").addClass( "overflow" );
	$('#reDaokuanTotal').bind('input propertychange', function() {changeTotal(this.value);}); 
	
 }); 
 function changeTotal(amount){ 
 var recManger=$("#reDakuanManger").val()*1; 
 var recRisk=$("#riskHuabo").val()*1;
 $("#reDaokuanRisk").val(recRisk); 
 $("#reDaokuanManger").val(recManger);
 var redTotal=amount*1-(recManger+recRisk);
 $("#redDaokaunDeposite").val(redTotal.toFixed(2));
} 
</@js> 
<@jsRender/>
